@extends('layouts.app')

@section('content')
    <div class="card">
        <div class="card-body">
            <div class="card-title">{{$data['info']['title']}}</div>
{{--            <div class="card-subtitle mb-2 text-muted">Card subtitle</div>--}}
            <div class="card-text">
                {!! $data['info']['content'] !!}

            </div>
        </div>
        <div class="card-footer">
            @if($data['previousArticle'])
                <a href="{{route('details',['id'=>$data['previousArticle']['id']])}}" class="card-link pull-left" data-toggle="tooltip" title="{{$data['previousArticle']['title']}}">上一篇</a>
            @endif

            @if($data['nextArticle'])
                <a href="{{route('details',['id'=>$data['nextArticle']['id']])}}" class="card-link pull-right" data-toggle="tooltip" title="{{$data['nextArticle']['title']}}"> 下一篇</a>
            @endif
        </div>
    </div>
@endsection
